home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-09-15 | 1.7 KB | 65 lines |
- OPTIMIZE = -O3 -fno-defer-pop -fno-builtin
- CCFLAGS = -c -m68020 -m68881 -Dmain=mymain
- LDFLAGS = -m68020 -s
- CC = gcc
- MKDEP = /mkdep
- YACC = bison -y
- LEX = flex -l
- LIBRAYDIR = ../../libray
- INCLUDE = -I$(LIBRAYDIR) -I../..
- CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
- LIBS = -lm -lfl
- YFLAGS = -d
-
- CFILES = main.c yacc.c lex.c
- OBJS = main.o yacc.o lex.o
- DEPENDSRC = main.c yacc.y lex.l
-
- .c.o:
- $(CC) $(CFLAGS) $<
-
- rsconvert: $(OBJS)
- gcc $(LDFLAGS) -o rsconvert GNU:lib/stderrfix.o $(OBJS) $(LIBS)
-
- clean:
- delete y.tab.h $(OBJS) lex.c yacc.c quiet
-
- # DO NOT DELETE THIS LINE
- main.o: main.c
- main.o: //config.h
- main.o: //libray/libcommon/color.h
- main.o: //libray/libcommon/common.h
- main.o: //libray/libcommon/error.h
- main.o: //libray/libcommon/expr.h
- main.o: //libray/libcommon/ray.h
- main.o: //libray/libcommon/transform.h
- main.o: //libray/libcommon/vector.h
- yacc.o: yacc.y
- yacc.o: //config.h
- yacc.o: //libray/libcommon/color.h
- yacc.o: //libray/libcommon/common.h
- yacc.o: //libray/libcommon/error.h
- yacc.o: //libray/libcommon/expr.h
- yacc.o: //libray/libcommon/ray.h
- yacc.o: //libray/libcommon/transform.h
- yacc.o: //libray/libcommon/vector.h
- # $(CC) $(CCFLAGS) $(INCLUDE) $>.c
- $(YACC) $(YFLAGS) $*.y
- copy y.tab.c $*.c
- delete y.tab.c
- $(CC) $(CFLAGS) $*.c
- lex.o: lex.l
- lex.o: //config.h
- lex.o: //libray/libcommon/color.h
- lex.o: //libray/libcommon/common.h
- lex.o: //libray/libcommon/error.h
- lex.o: //libray/libcommon/expr.h
- lex.o: //libray/libcommon/ray.h
- lex.o: //libray/libcommon/transform.h
- lex.o: //libray/libcommon/vector.h
- # $(CC) $(CCFLAGS) $(INCLUDE) $>.c
- $(LEX) $*.l
- sed -e "s/FILE \*yyin = stdin, \*yyout = stdout;/FILE *yyin = 0, *yyout = 0;/" <lex.yy.c >$*.c
- delete lex.yy.c
- $(CC) $(CFLAGS) $*.c
-